﻿package  
{
	
	import flash.display.MovieClip;
	
	
	public class BattleResult extends MovieClip 
	{
		
		private var data:Object = new Object();
		
		public function BattleResult() 
		{
			// constructor code
			
			nameText0.visible = false;
			nameText1.visible = false;
			
			levelUp0.visible = false;
			levelUp1.visible = false;
			
			exp0.visible = false;
			exp1.visible = false;
			
			expText0.visible = false;
			expText1.visible = false;
			
			data[0] = new Object();
			data[1] = new Object();
			
			data[0].name = nameText0;
			data[1].name = nameText1;
			
			data[0].level = levelUp0;
			data[1].level = levelUp1;
			
			data[0].exp = exp0;
			data[1].exp = exp1;
			
			data[0].expText = expText0;
			data[1].expText = expText1;
		}
		
		public function show( name:String , exp:int , levelUp:Boolean ):void
		{
			//for	( var i:int = 0 ; i < 2 ; i++ )
			//{
				data[0].name.visible = true;
				data[0].name.text = name;
				var expStr:String = "+ " + exp;
				data[0].expText.visible = true;
				data[0].expText.text = expStr;
				data[0].level.visible = levelUp;
				data[0].exp.visible = true;
			//}
		}
	}
	
}
